import request from '@/utils/request'

// 查询考勤记录列表
export function listAttend_record(query) {
  return request({
    url: '/ehr/attend_record/list',
    method: 'get',
    params: query
  })
}

// 查询考勤记录详细
export function getAttend_record(attendanceRecordId) {
  return request({
    url: '/ehr/attend_record/' + attendanceRecordId,
    method: 'get'
  })
}

// 新增考勤记录
export function addAttend_record(data) {
  return request({
    url: '/ehr/attend_record',
    method: 'post',
    data: data
  })
}

// 修改考勤记录
export function updateAttend_record(data) {
  return request({
    url: '/ehr/attend_record',
    method: 'put',
    data: data
  })
}

// 删除考勤记录
export function delAttend_record(attendanceRecordId) {
  return request({
    url: '/ehr/attend_record/' + attendanceRecordId,
    method: 'delete'
  })
}
